<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="encrypt/encrypt.js"></script>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
<script>
    var en=Encrypt("123k开导开导","B9E3D6DDCAA2BEE6D6C7C4DCBFC6BCBC","0123456789123456");
    console.log("en>>>>>"+en);
    console.log("de>>>>>"+Decrypt(en,"B9E3D6DDCAA2BEE6D6C7C4DCBFC6BCBC","0123456789123456"));

    (function ($) {
        var pendingRequests = {};
        // 所有ajax请求的通用前置filter
        $.ajaxPrefilter(function (options, originalOptions, jqXHR) {

            // 不重复发送相同请求
            var key = generatePendingRequestKey(options);
            if (!pendingRequests[key]) {
                //storePendingRequest(key, jqXHR);
                pendingRequests[key] = jqXHR;
            } else {
                // or do other
                jqXHR.abort();
            }

            var complete = options.complete;
            options.complete = function (jqXHR, textStatus) {
                // clear from pending requests
                console.log('jqXHR',jqXHR)
                pendingRequests[key] = null;
                if ($.isFunction(complete)) {
                    complete.apply(this, arguments);
                }
            };
        });

        function generatePendingRequestKey(opts) {
            var url = opts.url;
            var type = opts.type;
            var data = opts.data;
            var str = url + type;
            if (data) {
                str += data;
            }
            return str;
        }
    }(jQuery));

    $.get('http://localhost:6768/api/a/list_class?access_token=eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNqEzEEOgjAURdG9vDEm_YVCYQlugToo_NbUmEIAEw1h79YmDhw5vTm5O25bQIeR2BJ5yUxlVTJrZWsvG-FFq32rRxRYH0OCu8EQIsfJoDM4h3gVggwKg8A5_Ttlu71ml7U0ONI7rGt6T9GdRrvwJ9gNHamqJNnWjS7gnnMKtaJviIP_Fct0d-nSX443AAAA__8.VCqsumTsP0vJlTHq5xOrZ3juSEVFXmrZNTs39a7WCX4',function (result) {
        console.log("result",result)
    })


</script>

</body>
</html>